Optimal. Leaf size=102 \[ \frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}+\frac{b d^{3/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x^2}}{\sqrt{d}}\right )}{3 e}-\frac{b d n \sqrt{d+e x^2}}{3 e}-\frac{b n \left (d+e x^2\right )^{3/2}}{9 e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0878957, antiderivative size = 102, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {2338, 266, 50, 63, 208} \[ \frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}+\frac{b d^{3/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x^2}}{\sqrt{d}}\right )}{3 e}-\frac{b d n \sqrt{d+e x^2}}{3 e}-\frac{b n \left (d+e x^2\right )^{3/2}}{9 e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2338
Rule 266
Rule 50
Rule 63
Rule 208
Rubi steps
\begin{align*} \int x \sqrt{d+e x^2} \left (a+b \log \left (c x^n\right )\right ) \, dx &=\frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac{(b n) \int \frac{\left (d+e x^2\right )^{3/2}}{x} \, dx}{3 e}\\ &=\frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac{(b n) \operatorname{Subst}\left (\int \frac{(d+e x)^{3/2}}{x} \, dx,x,x^2\right )}{6 e}\\ &=-\frac{b n \left (d+e x^2\right )^{3/2}}{9 e}+\frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac{(b d n) \operatorname{Subst}\left (\int \frac{\sqrt{d+e x}}{x} \, dx,x,x^2\right )}{6 e}\\ &=-\frac{b d n \sqrt{d+e x^2}}{3 e}-\frac{b n \left (d+e x^2\right )^{3/2}}{9 e}+\frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac{\left (b d^2 n\right ) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{d+e x}} \, dx,x,x^2\right )}{6 e}\\ &=-\frac{b d n \sqrt{d+e x^2}}{3 e}-\frac{b n \left (d+e x^2\right )^{3/2}}{9 e}+\frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac{\left (b d^2 n\right ) \operatorname{Subst}\left (\int \frac{1}{-\frac{d}{e}+\frac{x^2}{e}} \, dx,x,\sqrt{d+e x^2}\right )}{3 e^2}\\ &=-\frac{b d n \sqrt{d+e x^2}}{3 e}-\frac{b n \left (d+e x^2\right )^{3/2}}{9 e}+\frac{b d^{3/2} n \tanh ^{-1}\left (\frac{\sqrt{d+e x^2}}{\sqrt{d}}\right )}{3 e}+\frac{\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e}\\ \end{align*}
Mathematica [A] time = 0.104242, size = 136, normalized size = 1.33 \[ \frac{3 a e x^2 \sqrt{d+e x^2}+3 a d \sqrt{d+e x^2}+3 b \left (d+e x^2\right )^{3/2} \log \left (c x^n\right )+3 b d^{3/2} n \log \left (\sqrt{d} \sqrt{d+e x^2}+d\right )-3 b d^{3/2} n \log (x)-b e n x^2 \sqrt{d+e x^2}-4 b d n \sqrt{d+e x^2}}{9 e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.468, size = 0, normalized size = 0. \begin{align*} \int x \left ( a+b\ln \left ( c{x}^{n} \right ) \right ) \sqrt{e{x}^{2}+d}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.55026, size = 505, normalized size = 4.95 \begin{align*} \left [\frac{3 \, b d^{\frac{3}{2}} n \log \left (-\frac{e x^{2} + 2 \, \sqrt{e x^{2} + d} \sqrt{d} + 2 \, d}{x^{2}}\right ) - 2 \,{\left (4 \, b d n +{\left (b e n - 3 \, a e\right )} x^{2} - 3 \, a d - 3 \,{\left (b e x^{2} + b d\right )} \log \left (c\right ) - 3 \,{\left (b e n x^{2} + b d n\right )} \log \left (x\right )\right )} \sqrt{e x^{2} + d}}{18 \, e}, -\frac{3 \, b \sqrt{-d} d n \arctan \left (\frac{\sqrt{-d}}{\sqrt{e x^{2} + d}}\right ) +{\left (4 \, b d n +{\left (b e n - 3 \, a e\right )} x^{2} - 3 \, a d - 3 \,{\left (b e x^{2} + b d\right )} \log \left (c\right ) - 3 \,{\left (b e n x^{2} + b d n\right )} \log \left (x\right )\right )} \sqrt{e x^{2} + d}}{9 \, e}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 20.0459, size = 155, normalized size = 1.52 \begin{align*} a \left (\begin{cases} \frac{\sqrt{d} x^{2}}{2} & \text{for}\: e = 0 \\\frac{\left (d + e x^{2}\right )^{\frac{3}{2}}}{3 e} & \text{otherwise} \end{cases}\right ) - b n \left (\begin{cases} \frac{\sqrt{d} x^{2}}{4} & \text{for}\: e = 0 \\\frac{4 d^{\frac{3}{2}} \sqrt{1 + \frac{e x^{2}}{d}}}{9 e} + \frac{d^{\frac{3}{2}} \log{\left (\frac{e x^{2}}{d} \right )}}{6 e} - \frac{d^{\frac{3}{2}} \log{\left (\sqrt{1 + \frac{e x^{2}}{d}} + 1 \right )}}{3 e} + \frac{\sqrt{d} x^{2} \sqrt{1 + \frac{e x^{2}}{d}}}{9} & \text{otherwise} \end{cases}\right ) + b \left (\begin{cases} \frac{\sqrt{d} x^{2}}{2} & \text{for}\: e = 0 \\\frac{\left (d + e x^{2}\right )^{\frac{3}{2}}}{3 e} & \text{otherwise} \end{cases}\right ) \log{\left (c x^{n} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.40223, size = 196, normalized size = 1.92 \begin{align*} \frac{1}{3} \, \sqrt{x^{2} e + d} b x^{2} \log \left (c\right ) + \frac{1}{3} \, \sqrt{x^{2} e + d} b d e^{\left (-1\right )} \log \left (c\right ) + \frac{1}{3} \, \sqrt{x^{2} e + d} a x^{2} + \frac{1}{3} \, \sqrt{x^{2} e + d} a d e^{\left (-1\right )} + \frac{1}{9} \,{\left (3 \,{\left (x^{2} e + d\right )}^{\frac{3}{2}} e^{\left (-1\right )} \log \left (x\right ) -{\left (\frac{3 \, d^{2} \arctan \left (\frac{\sqrt{x^{2} e + d}}{\sqrt{-d}}\right )}{\sqrt{-d}} +{\left (x^{2} e + d\right )}^{\frac{3}{2}} + 3 \, \sqrt{x^{2} e + d} d\right )} e^{\left (-1\right )}\right )} b n \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]